import request from '@/utils/request'

// 获取用户趋势数据
export function getUserTrendData(days) {
    return request({
        url: `/dataShow/UserTrend/${days}`,
        method: 'get'
    })
}

// 获取基础信息
export function getBasicInformation() {
    return request({
        url: '/dataShow/BasicInfomation',
        method: 'get'
    })
}

// 获取BMI统计
export function getTotalByBMI(params) {
    return request({
        url: '/dataShow/TotalByBMI',
        method: 'get',
        params
    })
}

// 获取运动目标达成度数据
export function getSportGoalData(params) {
    return request({
        url: '/dataShow/SportGoal',
        method: 'get',
        params
    })
}

// 获取最近七天用户登录趋势数据
export function getUserLoginNumData() {
    return request({
        url: '/dataShow/UserLoginNum', // 假设的API端点
        method: 'get'
    })
} 